Iso78.OpenSam
This command sets up a communication channel to a Secure Access Module (SAM) inserted into the reader. To select the SAM, you specify it using the LID parameter as described below. Once you've run this command successfully, you can run Iso78.ExchangeApdu to communicate with the SAM.
To close the communication channel after data exchange, run Iso78.CloseSam.
Properties
- Command code: 0x4004
- Command timeout: 100 ms
- Possible status codes: General status codes, Iso78.ErrCom, Iso78.ErrAbort, Iso78.ErrProtNotSupported, Iso78.ErrHw, Iso78.ErrInvalidSlot, Iso78.ErrInvalid7816Cmd
Parameters (request frame)
Name | Type/Size | Description | |
---|---|---|---|
LID | Enumeration (8 bits) |
Logical SAM-ID (LID) Values:
|
Returned values (response frame)
Name | Type/Size | Description |
---|---|---|
SamHandle | Integer (8 bits) | Identifier for SAM communication. Use this value in all subsequent calls of Iso78.CloseSam and Iso78.ExchangeApdu. |
Length of ATR | Integer (8 bits) |
Length of ATR in bytes |
ATR | Raw data | ATR (Answer To Reset) string of SAM |